package com.pic.others.domain.dto.note;


import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel(description = "笔记表单信息")
public class NoteFormDTO {
    @ApiModelProperty("笔记id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long noteId;

    @ApiModelProperty("用户id")
    @NotNull(message="用户id不可以为空")
    private Long userId;

    @ApiModelProperty("笔记内容")
    private String noteContentId;


}
